package com.student.student;

import com.student.student.StuRepository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class stuController {
    @Resource
    private StuRepository stuRepository;

    @RequestMapping("/")
    public List<com.student.student.stu> getStu(){
        return stuRepository.findAll();
    }
}
